import request from './request'
// 渲染
export const getCate = (params) => request.get('/categories?type='+params)
export const getcateList = (params) => request.get('/categories',{params})
// 添加
export const addCate = (params) => request.post('/categories',params)
// 删除
export const delCate = (id) => request.delete(`/categories/${id}`)
// 修改
export const changeCate = (id,params) => request.put(`/categories/${id}`,params)